import request from "../utils/request";
export async function getDeviceCount(params) {
  return await new Promise(resolve => {
    resolve(
      request({
        url: `/iot/aep/v1/api/device/count`,
        method: "POST",
        data: {

          ...params
        },
      }).then((res) => {

        if (res && res.return_code === "SUCCESS") {
          return res;
        }else {
         return false;
        }

      })
    );

  });
}